<template>
  <chn-selct :all-select-list="channelList" v-model="Range" />
</template>

<script>
import ChnSelct from './ChnSelct'
import { getUserChn } from '@/api/table'
export default {
  name: 'Channel',
  components: {
    ChnSelct
  },
  data() {
    return {
      Range: [],
      channelList: []
    }
  },
  watch: {
    Range() {
      this.$emit('input', this.Range)
    }
  },
  created() {
    this.getSelect()
  },
  methods: {
    getSelect() {
      getUserChn({}).then(res => {
        this.channelList = res.data.chn_list
      })
    }
  }
}
</script>
